#ifndef __MOVEABLE_WIN_H
#define __MOVEABLE_WIN_H

#include <QMouseEvent>
#include <QWidget>


class MoveableWin : virtual public QWidget {

public:
    using QWidget::QWidget;

protected:
    void mousePressEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;

private:
    QPoint m_drag_position;
    bool m_is_pressed = false;
};

#endif
